const beforEach = function (to, from, next) {
    const userInfo = wf.getModule('browser').getStorage('wf-user-info')
    if (!userInfo && to.path !== "/login") {
        // console.log('beforEach', to, userInfo);
        next({
            path: '/login',
            query: {
                path: to.fullPath
            }
        })
    }
    next()
}
const afterEach = function (to, from) {
    console.log('afterEach', to.meta.title);
    document.title = to.meta.title
    // wf.getModule('reporter').report('default', 'afterEach', {
    // 	to,
    // 	from,
    // });
}
export default {
    beforEach,
    afterEach
}